//
//  IDGenerator.h
//  MoCard
//
//  Created by 水石 温 on 11-9-26.
//  Copyright 2011年 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

#define ID_LEN  9   //ID长度



@interface IDGenerator : NSObject {
    //IDGenerator *defaultGenerator;
    NSString *idPrefix;
    NSInteger idSuffix;
}

/*必须调用该单例初始化方法，不能直接alloc init*/
+(IDGenerator*)share;
//@property(nonatomic,retain) IDGenerator *defaultGenerator;
@property(nonatomic,retain) NSString *idPrefix;
-(NSString*)genID;
-(void)generateNewPrefix;
@end
